package org.pzy.spring.factory.support;

import org.pzy.spring.BeansException;
import org.pzy.spring.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @Author: DRevelation
 * @Date: 2022/3/17 10:19
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;

}